﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplicationMenu.Menu
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public IEnumerable<MenuItem> MenuItems
        {
            get 
            {
                return (IEnumerable<MenuItem>)(this.DataListMenu.DataSource);
            }

            set
            {
                this.DataListMenu.DataSource = value;
            }
        }

        public void DataBind()
        {

            this.DataListMenu.DataBind();
        }
    }
}